﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ListUserInRole.ascx.cs" Inherits="Hutech.CRM.Web.Controls.ManageRoleAndModule.ListUserInRole" %>
<%@ Register src="~/Controls/ManageRoleAndModule/PopupAddUser.ascx" tagname="PopupAddUser" tagprefix="uc1" %>


<asp:UpdatePanel ID="pnlMain" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="false">
    <ContentTemplate>
        <div class="settingrow">
            <asp:LinkButton id="LinkButtonAddUserInRole" runat="server" CssClass="cblink" />
        </div>
        <div class="settingrow">
            <asp:Repeater ID="rptRoleMembers" runat="server">
                <ItemTemplate>
                    <div>
                        <asp:ImageButton ImageUrl='<%# DeleteLinkImage %>' AlternateText='<%# Resources.Resource.ManageUsersRemoveFromRoleButton %>'
                            ToolTip='<%# Resources.Resource.ManageUsersRemoveFromRoleButton %>' CommandName="delete"
                            CommandArgument='<%# DataBinder.Eval(Container.DataItem, "UserID") %>' runat="server"
                            ID="btnDelete" />
                        <asp:Label Text='<%# DataBinder.Eval(Container.DataItem, "Name") %>' ToolTip='<%# DataBinder.Eval(Container.DataItem, "LoginName") %>' runat="server" ID="Label1" />
                    </div>
                </ItemTemplate>
            </asp:Repeater>
            <uc1:PopupAddUser ID="PopupAddUser1" runat="server" />
        </div>
        <hr />
        
         <!-- Phan trang -------------------------->
        <div style="margin:10px 0;  width:99%;">
            <div style="float:right;">
                <MyC:mojoCutePager ID="pgrItems" runat="server" />
            </div>
        </div>
        <div class="settingrow">
            <asp:Label ID="Message" runat="server" CssClass="txterror" />
        </div>
    </ContentTemplate>

    <Triggers>
        <asp:AsyncPostBackTrigger ControlID="LinkButtonAddUserInRole" EventName="Click" />
        <asp:AsyncPostBackTrigger ControlID="PopupAddUser1" EventName="ReloadData" />
        <asp:AsyncPostBackTrigger ControlID="pgrItems" EventName="Command" />
    </Triggers>
</asp:UpdatePanel>

